import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class TimeSortStrategy implements CommentStrategy {
    public void sort(List<Comment> commentList){
        commentList.sort(Comparator.comparing(Comment::getTimestamp).reversed());
        System.out.println("已经按照时间顺序进行排序哩");
    };
}